package com.atguigu.spzx.cloud.api;

import com.atguigu.spzx.cloud.api.fallback.UserFeignClientImpl;
import com.atguigu.spzx.cloud.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "spzx-cloud-user",fallback = UserFeignClientImpl.class)
public interface UserFeignClient {

    @GetMapping("/api/user/findUserByUserId/{userId}")
    public User queryById(@PathVariable Long userId);
}
